package top.revery.task.util;

import java.util.Random;

/**
 * @author denghao
 * @title
 * @package
 * @date 2019/12/4 18:50
 */
public class IdUtils {

    public static String getUUID(){
        StringBuilder sb = new StringBuilder();
        Random random = new Random();
        for (int i = 0; i < 9; i++) {
            sb.append(random.nextInt(10));
        }
        return "ID:"+sb.toString();
    }

    public static String getTaskNumber(){
        StringBuilder sb = new StringBuilder();
        Random random = new Random();
        for (int i = 0; i < 19; i++) {
            sb.append(random.nextInt(10));
        }
        return sb.toString();
    }

    public static String orderNumber(){
        StringBuilder sb = new StringBuilder();
        Random random = new Random();
        for (int i = 0; i < 12; i++) {
            sb.append(random.nextInt(10));
        }
        return sb.toString();
    }
}
